# $Id: PKGBUILD 58791 2011-11-18 14:30:27Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: opqdonut <joel.kaasinen@gmail.com>

pkgname=emacs-lua-mode
pkgver=20111107
pkgrel=1
pkgdesc="Emacs lua-mode"
arch=('any')
url="http://lua-mode.luaforge.net"
license=('GPL')
depends=()
makedepends=('emacs')
install=$pkgname.install
source=(lua-mode-$pkgver.zip::https://github.com/immerrr/lua-mode/zipball/rel-$pkgver)
md5sums=('8d476db7937ed449b2e2aea3a6ffa4db')

build() {
  cd $srcdir/immerrr-lua-mode-*
  make compile
}

package() {
  cd $srcdir/immerrr-lua-mode-*
  mkdir -p $pkgdir/usr/share/emacs/site-lisp
  cp *.el{c,} $pkgdir/usr/share/emacs/site-lisp/
}
